package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.PhoneKnowledgeDao;
import com.itheima.pojo.SportsInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service(interfaceClass = PhoneKnowledgeService.class)
@Transactional
public class PhoneKnowledgeServiceImpl implements PhoneKnowledgeService {

    @Autowired
    private PhoneKnowledgeDao phoneKnowledgeDao;

    @Override
    public List<SportsInfo> findSportById(Integer id) {
        return phoneKnowledgeDao.findSportById(id);
    }
}
